package org.ctd.springframework.beans.factory.parsing;

import com.ctd.springframework.core.io.Resource;
import org.ctd.springframework.beans.factory.parsing.extractor.source.SourceExtractor;
import org.ctd.springframework.beans.factory.parsing.listener.reader.ReaderEventListener;
import org.ctd.springframework.beans.factory.parsing.reporter.ProblemReporter;

/**
 * ReaderContext
 *
 * @author chentudong
 * @date 2019/3/26
 */
public class ReaderContext {
    private final Resource resource;

    private final ProblemReporter problemReporter;

    private final ReaderEventListener eventListener;

    private final SourceExtractor sourceExtractor;

    public ReaderContext(Resource resource, ProblemReporter problemReporter,
                         ReaderEventListener eventListener, SourceExtractor sourceExtractor) {

        this.resource = resource;
        this.problemReporter = problemReporter;
        this.eventListener = eventListener;
        this.sourceExtractor = sourceExtractor;
    }
}
